var express = require('express');
var router = express.Router();


var enoteCtrl = require('../controllers/enoteCtrl');
router.get('/home', function (req, res) {

    return res.redirect(303, '/views/enoteHome.html');
});


router.get('/', enoteCtrl.get);
router.get('/:id', enoteCtrl.getOne);
router.post('/add', enoteCtrl.add);
router.post('/update', enoteCtrl.update);
router.post('/delete', enoteCtrl.remove);



module.exports = router;
